The sieve-manage.el library contains low-level functionality for talking to a server with the MANAGESIEVE protocol.
A number of user-visible variables exist, which all can be
customized in the sieve group (M-x
customize-group RET sieve RET):
sieve-manage-default-portSets the default port to use, the suggested port number is
2000.
sieve-manage-logIf non-nil, should be a string naming a
buffer where a protocol trace is dumped (for debugging
purposes).
The API functions include:
sieve-manage-openOpen connection to managesieve server, returning a buffer to be used by all other API functions.
sieve-manage-openedCheck if a server is open or not.
sieve-manage-closeClose a server connection.
sieve-manage-authenticateAuthenticate to the server.
sieve-manage-capabilityReturn a list of capabilities the server supports.
sieve-manage-listscriptsList scripts on the server.
sieve-manage-havespaceReturn non-nil if the server has room for a
script of given size.
sieve-manage-getscriptDownload script from server.
sieve-manage-putscriptUpload script to server.
sieve-manage-setactiveIndicate which script on the server should be active.